﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace Sendz.WebUI.Helpers
{
    public static class HtmlExtensions
    {
        public static string HumanMessage(this HtmlHelper htmlHelper, string message)
        {           
            if (string.IsNullOrWhiteSpace(message))
            {
                return string.Empty;
            }
            return "<script type=\"text/javascript\">$(document).ready(function () {$(window).humanMsg(\"" + message + "\");});</script>";
        }
    }
}